Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: make sure code cov reports generate and upload #469

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

lwasser
Copy link
Collaborator

@lwasser lwasser commented Jan 30, 2024

closes #468

Description

Adds the token that i added to our repo to the build

Type of change

Select the statement best describes this pull request.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • This is a documentation update
  • This is a infrastructure update (docs, ci, etc)
  • Other (please describe)

Does your PR include tests

If you are fixing a bug or adding a feature, we appreciate (but do not require)
tests to support whatever fix of feature you're implementing.

  • Yes
  • No, i'd like some help with tests
  • This change doesn't require tests

Did you include your contribution to the change log?

  • Yes, changelog.md is up-to-date.

I am not sure this needs another changelog input from me.

@lwasser
Copy link
Collaborator Author

lwasser commented Jan 30, 2024

this is still not working - please do not merge until we get it working. i'll turn it into a draft.

@lwasser lwasser marked this pull request as draft January 30, 2024 17:29
@lwasser
Copy link
Collaborator Author

lwasser commented Jan 30, 2024

my theory is that nox saves the coverage.xml file into a temp envt so ci can't find it. somehow nox needs to spit out the file so ci can find it.

Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3667fe3) 0.00% compared to head (cc25574) 89.51%.

❗ Current head cc25574 differs from pull request most recent head 4599739. Consider uploading reports for the commit 4599739 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##           main     #469       +/-   ##
=========================================
+ Coverage      0   89.51%   +89.51%     
=========================================
  Files         0       10       +10     
  Lines         0     1878     +1878     
  Branches      0      150      +150     
=========================================
+ Hits          0     1681     +1681     
- Misses        0      156      +156     
- Partials      0       41       +41     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lwasser lwasser marked this pull request as ready for review January 30, 2024 23:53
@lwasser
Copy link
Collaborator Author

lwasser commented Jan 30, 2024

as you can see codecov is now reporting on test coverage as it should and it's uploading as well. this is ready for review. something must have changed in the pytest-cov package as the approach we used previously did work. (well in a makefile envt). But i like this approach better as it's much more clear which flags and values pair.

@lwasser lwasser changed the title Fix: code cov requires token Fix: make sure code cov reports generate and upload Jan 31, 2024
@lwasser
Copy link
Collaborator Author

lwasser commented Jan 31, 2024

This is also ready for a review (and merge??) if y'all agree.

@lwasser lwasser merged commit 84580fc into stravalib:main Jan 31, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code cov reports not uploading
2 participants